<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('phpcms','header'); ?>
<div id="main_full">
<div id="position"><a href="">Ê×Ò³</a>ÍøÕ¾µØÍ¼</div>
  <div id="sitemap">
<?php if(is_array($CATEGORY)) foreach($CATEGORY AS $catid => $cat) { ?>
<?php if($cat[module]=='phpcms' && !$cat[parentid] && !strpos($cat[url], 'ask')) { ?>  
    <h3><a href="<?php echo $cat['url'];?>"><?php echo $cat['catname'];?></a></h3>
    <p>
<?php if(is_array($CATEGORY)) foreach($CATEGORY AS $childid => $c) { ?>
<?php $arrcats = explode(',',$c[arrparentid]);?>
<?php if(in_array($catid,$arrcats)) { ?><span style="width:100px"><a href="<?php echo $c['url'];?>"><?php echo $c['catname'];?></a></span><?php } ?>
<?php } ?>
</p>
<?php } ?>
<?php } ?>
<?php if(isset($MODULE[ask])) { ?>
<h3><a href="<?php echo $MODULE['ask']['url'];?>">ÎÊ°É</a></h3>
<p>
<?php if(is_array($CATEGORY)) foreach($CATEGORY AS $catid => $cat) { ?>
<?php if($cat[module]=='ask') { ?><span style="width:100px"><a href="<?php echo $cat['url'];?>"><?php echo $cat['catname'];?></a></span><?php } ?>
<?php } ?>
</p>
<?php } ?>
  </div>
</div>
<?php include template('phpcms','footer'); ?>